define(function(){
	function json(){
		$.ajax({
		type:"get",
		url:"http://127.0.0.1/XiaoZhuangWangXiangMu/json/index1.json",
		async:true,
		success:function(json){
			var html="";
			for(var attr in json){
				if(attr=="header"){
					for(var i=0; i<json[attr].length;i++){
						html+=` <li>
							   <a href="../XiaoZhuangWangXiangMu/html/page.html" >
							     <img src="img/${json[attr][i].src}"/>
							     <dl>${json[attr][i].dl}</dl>
							     <a class="rg_a">${json[attr][i].a}</a>
							     <span>${json[attr][i].span}</span>
							     <p>${json[attr][i].p}</p>
							   </a>
							</li>
	    					`
						$(".rg").html(html);
						console.log(html);
					}
						
				} 
				
			}
					
		 }
      })
	}
	return {
		json : json
	}
})
           